﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GeckoPhotos.Models.Image>>" %>

<%@ Register Src="../ImageThumbnail/GetImageThumbnail.ascx" TagName="GetImageThumbnail"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <% foreach (var item in Model)
       {
           Html.RenderPartial("~/Views/ImageThumbnail/GetImageThumbnail.ascx", item);
       } %>
    <p style="clear: both">
        <%= Html.ActionLink("Upload", "Upload")%>
    </p>
</asp:Content>
